package com.androinject.test.components;

public class ManagedService {

	private ValueService first;
	private ValueService second;
	private ValueService third;
	
	public void setFirst(ValueService first) {
		this.first = first;
	}
	
	public void setSecond(ValueService second) {
		this.second = second;
	}
	
	public void setThird(ValueService third) {
		this.third = third;
	}

	public String getValue() {
		String value = "Managed";
		if (this.first != null) {
			value += "(first=" + this.first.getValue() + ")";
		}
		if (this.second != null) {
			value += "(second=" + this.second.getValue() + ")";
		}
		if (this.third != null) {
			value += "(third=" + this.third.getValue() + ")";
		}
		return value;
	}
	
}
